import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
    // 是否登录
    isLogin: false,

};

// 创建Store对象
const store = new Vuex.Store({
    state,
    mutations: {

        //更新登录状态
        updataLoginState(state, flag = false) {
            state.isLogin = flag;
        },

    },
});



export default store;